package com.mxnavi.smartd.sdk.bean;

import androidx.room.ColumnInfo;
import androidx.room.Embedded;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * @author ：zhong.jw
 * @date ：Created in 2024/2/22 14:34
 */
@Entity(tableName = "user_car_drive_record")
public class UserCarDriveRecord {

    @ColumnInfo(name = "id", typeAffinity = ColumnInfo.INTEGER)
    @PrimaryKey(autoGenerate = true)
    public Long id;

    /**
     * 用户名
     */
    @ColumnInfo(name = "username", typeAffinity = ColumnInfo.TEXT)
    public String username;

    /**
     * 用户驾驶风格
     */
    @Embedded
    public CarDriveStyleBean carDriveStyleBean;

    /**
     * 试驾时间
     */
    @ColumnInfo(name = "drive_time", typeAffinity = ColumnInfo.INTEGER)
    public Long driveTime;
}
